﻿(function () {

    var pets = [
        new Models.CatModel("asd", new Date().toDateString(), "cat", "male", 124, "white"),
        new Models.CatModel("asd", Date.now, "cat", "male", 124, "white"),
        new Models.CatModel("asd", Date.now, "cat", "male", 124, "white"),
        new Models.CatModel("asd", Date.now, "cat", "male", 124, "white"),
        new Models.CatModel("asd", Date.now, "cat", "male", 124, "white"),
        new Models.CatModel("asd", Date.now, "cat", "male", 124, "white"),
    ];
    var vets = [
        //new Models.VetModel("asd", "ads", "adfga", "adsgadga"),
        //new Models.VetModel("adsf", "dasdf", "adsfa", "daffadsf")
    ];

    var getVets = function() {
        return vets;
    }

    var addVet = function(VetModel) {
        vets.push(VetModel);
    }

    var getPets = function ()
    {
        return pets;
    }

    var addPet = function(PetModel){
        pets.push(PetModel);
    }

    WinJS.Namespace.define("Data", {
        getPets: getPets,
        addPet: addPet,
        getVets: getVets,
        addVet: addVet
    });
})()